package com.honey.chat.entity;

import java.util.Date;

/**
 * 
 * @author honey
 * @version 创建时间：2020年12月6日 下午3:23:10
 */
public class Message {

	private String userName;
	
	private String msg;
	
	private Date sendTime;
	
	private String sendUrl;
	
	private String roomNum;
	
	//消息类型0:系统消息,1:用户消息
	private Long flag;

	public String getUserName() {
		return userName;
	}

	public String getMsg() {
		return msg;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getSendUrl() {
		return sendUrl;
	}

	public void setSendUrl(String sendUrl) {
		this.sendUrl = sendUrl;
	}

	public String getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(String roomNum) {
		this.roomNum = roomNum;
	}

	public Long getFlag() {
		return flag;
	}

	public void setFlag(Long flag) {
		this.flag = flag;
	}

	@Override
	public String toString() {
		return "{\"userName\":\"" + userName + "\", \"msg\":\"" + msg + "\", \"sendTime\":\"" + sendTime
				+ "\", \"sendUrl\":\"" + sendUrl + "\", \"roomNum\":\"" + roomNum + "\", \"flag\":\"" + flag + "\"}";
	}
}
